<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="button" value="点击" onclick="fn()">
    <script>
        function fn() {
            var a = 10;
            var b = 12;
            var s = a + b;
            sum(23, 25);
            document.write("s", s)

            sum(a, b);

        }
        function sum(x, y) {
            return x + y;
        }
    </script>
</body>

</html>